//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("UnitInspector.cpp", FormInspector);
USEFORM("UnitMainMenu.cpp", FormMainMenu);
USEFORM("Unit2.cpp", FormPattern);
USEFORM("UnitConnection.cpp", FormConnection);
USEFORM("rml_script.cpp", FormReport);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
        try
        {
                 Application->Initialize();
                 Application->CreateForm(__classid(TFormMainMenu), &FormMainMenu);
         Application->CreateForm(__classid(TFormInspector), &FormInspector);
         Application->CreateForm(__classid(TFormPattern), &FormPattern);
         Application->CreateForm(__classid(TFormConnection), &FormConnection);
         Application->CreateForm(__classid(TFormReport), &FormReport);
         Application->Run();
        }
        catch (Exception &exception)
        {
                 Application->ShowException(&exception);
        }
        catch (...)
        {
                 try
                 {
                         throw Exception("");
                 }
                 catch (Exception &exception)
                 {
                         Application->ShowException(&exception);
                 }
        }
        return 0;
}
//---------------------------------------------------------------------------
